package com.zmn.oms.services.impl.work.financework;

import com.zmn.oms.model.entity.work.OrderWork;
import com.zmn.oms.persistence.interfaces.work.OrderWorkDao;
import com.zmn.oms.services.interfaces.work.financework.FinanceWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 类描述：财务工单实现类
 * @author lujia
 * @date 2018/11/02 20:59
 */
@Service
public class FinanceWorkServiceImpl implements FinanceWorkService {

    @Resource
    OrderWorkDao orderWorkDao;

    /**
     * @param orderWork 工单
     */
    @Override
    public Integer updateAccount(OrderWork orderWork) {
        return orderWorkDao.updateAccount(orderWork);
    }

    @Override
    public Integer updateAppliqueStatus(OrderWork orderWork) {
        return orderWorkDao.updateAppliqueStatus(orderWork);
    }

    @Override
    public void updateMasterAmountPay(OrderWork orderWork) {
        orderWorkDao.updateMasterAmountPay(orderWork);
    }

    @Override
    public Integer updateCheckout(OrderWork orderWork) {
        return orderWorkDao.updateCheckout(orderWork);
    }
}
